import 'package:get/route_manager.dart';
import 'package:shen_nai/pages/chart_detail/line_chart_detail_page.dart';
import 'package:shen_nai/pages/data/data_page.dart';
import 'package:shen_nai/pages/login/login_page.dart';
import 'package:shen_nai/pages/main/main_page.dart';
import 'package:shen_nai/pages/real_data/real_data_page.dart';
import 'package:shen_nai/pages/welcome/welcome_page.dart';

//界面路由
class AppRoute {
  static List<GetPage> routerList = [
    GetPage(name: LINE_CHART_DETAIL, page: () => const LineChartDetailPage()),//图表详情页
    GetPage(name: LOGIN, page: () => const LoginPage()),//登录页
    GetPage(name: HOME, page: () => const MainPage()),//首页
    GetPage(name: DATA, page: () => const DataPage()),//表盘数据界面
    GetPage(name: REAL_DATA, page: () => const RealDataPage()),//实时数据界面
    GetPage(name: WELCOME, page: () => const WelcomePage())//欢迎页
  ];
  //欢迎界面
  static const WELCOME = '/welcome';
  //首页
  static const HOME = '/home';
  //登录
  static const LOGIN = '/login';
  //数据界面
  static const DATA = '/data';
  //实时数据
  static const REAL_DATA = '/real_data';
  //折线图详情页
  static const LINE_CHART_DETAIL = '/line_chart_detail';
}
